<div class="types view">
    <h2 class="left"><?php __('Tipo'); ?></h2>
    <div class="actions specific">
        <ul>
            <li><?php echo $this->Html->link(__('Editar', true), array('action' => 'edit', $type['Type']['id'])); ?> </li>
            <li><?php 
            if($type['Type']['termination_date'] == NULL){
                echo $this->Html->link(__('Dar Baja', true), array('action' => 'baja', $type['Type']['id']), null, sprintf(__('Esta seguro que desea dar baja a # %s?', true), $type['Type']['name']));
            }else{
                echo $this->Html->link(__('Deshacer Baja', true), array('action' => 'deshacer_baja', $type['Type']['id']));
            }
            ?></li>
            <li><?php echo $this->Html->link(__('Eliminar', true), array('action' => 'delete', $type['Type']['id']), null, sprintf(__('Esta seguro que desea eliminar el tipo # %s?', true), $type['Type']['name'])); ?> </li>
        </ul>
    </div>
    <br />
    <br />
    <br />
    <dl><?php $i = 0;
$class = ' class="altrow"'; ?>
        <dt<?php if ($i % 2 == 0)
            echo $class; ?>><?php __('Id'); ?></dt>
        <dd<?php if ($i++ % 2 == 0)
                echo $class; ?>>
                <?php echo $type['Type']['id']; ?>
            &nbsp;
        </dd>
        <dt<?php if ($i % 2 == 0)
                    echo $class; ?>><?php __('Nombre'); ?></dt>
        <dd<?php if ($i++ % 2 == 0)
                    echo $class; ?>>
<?php echo $type['Type']['name']; ?>
            &nbsp;
        </dd>
        <dt<?php if ($i % 2 == 0)
    echo $class; ?>><?php __('Fecha de Baja'); ?></dt>
        <dd<?php if ($i++ % 2 == 0)
                echo $class; ?>>
                <?php
                if($type['Type']['termination_date'] != NULL){
                    $fecha = date('d/m/Y', strtotime($type['Type']['termination_date']));
                }
                echo $fecha;
                ?>
            &nbsp;
        </dd>
    </dl>
</div>
<!--<div class="actions">
    
    <ul>
        <li><?php echo $this->Html->link(__('Edit Type', true), array('action' => 'edit', $type['Type']['id'])); ?> </li>
                <li><?php echo $this->Html->link(__('Delete Type', true), array('action' => 'delete', $type['Type']['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $type['Type']['id'])); ?> </li>
    </ul>
</div>-->